package com.voice.server.repository;


import com.voice.server.entity.AppToken;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-04-23 11:54:50
 */
public interface AppTokenRepository extends JpaRepository<AppToken,String> {

    List<AppToken> findByPushUrlIsNotNull();

    AppToken findByAppKey(String appKey);

    AppToken findByUserId(String userId);

}
